package com.tanhua.manage.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 西楚霸王
 * @date 2020/12/5 17:30
 */
@Configuration
public class MybatisPlusConfig {
    /**
     * 启用分页插件
     *
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
